package org.example.java.base;

/**
 * User: ZhangJuntao
 * Date: 13-11-3
 * Time: 上午8:45
 */
public class SystemExitTest {
  public static void main(String[] args) {
    System.out.println("begin");
    int flag = sleep();
    System.exit(flag);
    System.out.println("end");
  }

  public static int sleep() {
    try {
      Thread.sleep(3000l);
      System.out.println("sleep end!");
    } catch (InterruptedException e) {
      e.printStackTrace();
    }
    return 3;
  }
}
